<?php

namespace app\index\model;

/**
 * Half类 
 * @author      lixin 
 * @version     1.0 版本号
 */
class Half extends BaseModel
{

    protected $autoWriteTimestamp = true;

    protected static function init()
    {
        self::beforeInsert(function ($data) {
            $data['member_id'] = session('member_id');
            return true;
        });
    }


}
